package com.me.darkness_is_coming.actors;

import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;

public class GUIElement extends Actor
{
    private TextureRegion texture;
    public GUIElement(TextureRegion region,float X,float Y,float Width,float Height){
        texture = region;
        setPosition(X, Y);
        setSize(Width,Height);
    }
    @Override
    public void draw(Batch batch, float parentAlpha){
        batch.setColor(getColor());
        batch.draw(texture, getX(), getY(), getWidth(), getHeight());
    }

}
